#include <iostream>
#include <sys/time.h>
#include <unistd.h>
#include <chrono>

#define MILLION 1000000L

using namespace std;

int main(void)
{
	chrono::steady_clock::time_point t1 = chrono::steady_clock::now();
	/********* target task **************/
	sleep(2);
	/************************************/
	chrono::steady_clock::time_point t2 = chrono::steady_clock::now();
	chrono::duration<double> time_used = chrono::duration_cast<chrono::duration<double>>(t2 - t1)*MILLION;
	
    cout<<"The target task took "<<time_used.count()<<" us"<<endl;
	return 0;
}
